package com.shekhar.paas.story;

import com.shekhar.paas.domain.Story;

import uk.ac.shef.wit.simmetrics.similaritymetrics.JaccardSimilarity;

public class JaccardSimilarityScorer implements SimilarityScorer {

    JaccardSimilarity jaccardSimilarity = new JaccardSimilarity();

    @Override
    public float score(Story one, Story two) {
        return jaccardSimilarity.getSimilarity(one.getTitle(), two.getTitle());
    }

}
